using Avalonia;

namespace AvaloniaApplication1;

public class ButtonAssist 
{
    public static readonly AttachedProperty<bool> IsBusyProperty =
        AvaloniaProperty.RegisterAttached<ButtonAssist, AvaloniaObject, bool>("IsBusy");

    public static void SetIsBusy(AvaloniaObject obj, bool value) => obj.SetValue(IsBusyProperty, value);

    public static bool GetIsBusy(AvaloniaObject obj) => obj.GetValue(IsBusyProperty);
}